module.exports = {
    css: {
        extract: false
    },
    publicPath: './',
    lintOnSave: true,
    productionSourceMap: false,
    // 忽略的打包文件
    chainWebpack: (config) => {
        config.externals({
            'vue': 'Vue',
            'vue-router': 'VueRouter',
            'vuex': 'Vuex',
            'axios': 'axios',
            'element-ui': 'ELEMENT',
        })
    },
    // 转发代理
    devServer: {
        proxy: {
            '/workorder': {
                target: 'http://10.50.1.48:10013',
                changeOrigin: true,
                ws: false,
                pathRewrite: {
                    '^/workorder': '/workorder'
                }
            }
        }
    }
}